<script type="text/javascript" src="<?php echo $this->baseUrl() ?>/public/js/jquery.form.js"></script>
<form id="form2" action="<?php echo $this->fullUrl('/bid/product/savestep2/') ?>" method="post">
<div class="grid_20">
        <span class="my_account">&gt;&gt; Két Của Tui &gt;&gt; Đăng Bán</span><br><br>
        <div class="step_top">              
            <a href="<?php echo $this->fullUrl('/bid/product/create1/') ?>"><div class="grid_4 step alpha">
                <div class="step_content">
                    <span class="step_name">buoc 1</span><br>	
                    <span class="step_des">(đăng ký nhóm sản phẩm)</span>
                </div>
            </div></a>
            <div class="grid_1"><div class="sep_arrow"></div></div>
            
            <a href="#"><div class="grid_4 step_current">
                <div class="step_content">
                    <span class="step_name">buoc 2</span><br>	
                    <span class="step_des">(đăng ký lên sàn)</span>
                </div>
            </div></a>
            
            <div class="grid_1"><span class="sep_arrow"></span></div>                
            
            <a href="#"><div class="grid_4 step">
                <div class="step_content">
                    <span class="step_name">buoc 3</span><br>	
                    <span class="step_des">(đăng hình sản phẩm)</span>
                </div>
            </div></a>
            <div class="grid_1"><span class="sep_arrow"></span></div>                
            
            <a href="#"><div class="grid_4 step omega">
                <div class="step_content">
                    <span class="step_name">buoc 4</span><br>	
                    <span class="step_des">(xác nhận)</span>
                </div>
            </div></a>
        </div> <!-- End Step top -->                           
		<div class="clear"></div>                    
        <div class="sep_big grid_19 prefix_1 alpha"><hr></div>        		
        <div class="clear"></div>
        
        <div class="grid_19 prefix_1 alpha">
        	<div class="message require" id="message"></div>
            <div class="step_content">
            Vui lòng đăng ký thông tin một cách chính xác nhất, điều này sẽ làm sản phẩm của bạn được bán nhanh hơn và 
nâng cao điểm uy tín của bạn.<br><br>

                <div class="grid_4 alpha">Tiêu đề tin:</div>
                <div class="grid_6"><input type="text" name="title" class="textInputstep" value="<?php echo $this->product->title ?>" maxlength="50"></div>
                <div class="grid_1 suffix_8 omega"><span class="require">*</span></div>
                
                <div class="grid_4 alpha">Mô tả chi tiết</div>
                <div class="grid_6"><textarea name="description" class="textaInputStep"><?php echo $this->product->description ?></textarea>
                </div>
                <div class="grid_1 suffix_8 omega"><span class="require">*</span></div>
                <div class="clear"></div><br>

                <div class="grid_4 alpha">Tình trạng sản phẩm</div>
                <div class="grid_4"><input type="radio" name="status" class="styled" <?php if($this->product->status == 0) : ?>checked="checked"<?php endif ?> value="0"> Mới hoàn toàn</div>
                <div class="grid_2"><input type="radio" name="status" class="styled" <?php if($this->product->status == 1) : ?>checked="checked"<?php endif ?> value="1"> Xài rồi</div>
                <div class="grid_9 omega"><span class="require">*</span></div>
                
                <br><div class="sep_his"><hr></div><br>
           
                <div class="grid_4 alpha">Giá khởi điểm:</div>
                <div class="grid_6"><input type="text" name="start_price" class="textInputstep" value="<?php echo $this->product->start_price ?>" maxlength="50"></div>
                <div class="grid_3 suffix_6 omega"><span class="require">* = PTZ</span></div>
                
                <div class="grid_4 alpha">Giá muốn bán:</div>
                <div class="grid_6"><input type="text" name="expected_price" class="textInputstep" value="<?php echo $this->product->expected_price ?>" maxlength="50"></div>
                <div class="grid_3 suffix_6 omega"><span class="require">* = PTZ</span></div>
                
                <div class="grid_4 alpha">Giá bán ngay:</div>
                <div class="grid_6"><input type="text" name="salenow_price" class="textInputstep" value="<?php echo $this->product->salenow_price ?>" maxlength="50"></div>
                <div class="grid_3 suffix_6 omega"><span class="require">* = PTZ</span></div>
                
                <div class="grid_4 alpha">Cho phép đặt giá từ</div>
                <div class="grid_4"><input type="radio" name="allow" class="styled" <?php if($this->product->allow_bid == 0): ?>checked="checked"<?php endif ?> value="0"> Tất cả thành viên</div>
                <div class="grid_3 suffix_8 omega"><input type="radio" name="allow" class="styled" <?php if($this->product->allow_bid == 1): ?>checked="checked"<?php endif ?> value="1"> Chỉ thành viên xác minh</div>
				
                <div class="grid_4 alpha">Thời gian lên sàn</div>
                <div class="grid_4"><input type="radio" id="a1" name="avaiable_time1" class="styled" <?php if($this->product->avaiable_time == 7): ?>checked="checked"<?php endif ?> value="7"> Tối đa 7 ngày</div>
                <div class="grid_4"><input type="radio" id="a2" name="avaiable_time1" class="styled" value="checked"> Chọn thời gian kết thúc
(tối đa 10 ngày)</div>
                <div class="grid_7 omega"><input type="text" id="a3" name="avaiable_time" class="dateInputstep" value="" maxlength="50"></div>
                
                <br><div class="sep_his"><hr></div><br>
                
                <div class="grid_4 alpha">Thông tin giao hàng</div>
                <div class="grid_6"><textarea name="shipping_info" class="textaInputStep"><?php echo $this->product->shipping_info ?></textarea>
                </div>
                <div class="grid_1 suffix_8 omega"><span class="require">*</span></div>
                
                <div class="clear"></div>
                
                <div class="grid_4 alpha">Phương thức thanh toán</div>
                <div class="grid_3"><input type="radio" name="payment_method" class="styled" <?php if($this->product->payment_method==1):?>checked="checked"<?php endif ?> value="1"> Trực tiếp</div>
                <div class="grid_3"><input type="radio" name="payment_method" class="styled" <?php if($this->product->payment_method==2):?>checked="checked"<?php endif ?> value="2"> Bank</div>
                <div class="grid_9 omega"><input type="radio" name="payment_method" class="styled" <?php if($this->product->payment_method==3):?>checked="checked"<?php endif ?> value="3"> Chuyển thành điểm</div>
                
                <div class="grid_4 alpha">Khu Vực Bán</div>
                <div class="grid_15 omega">
                <select name="district" id="district">
                    <option value="1">Quận 5</option>
                    <option value="2">Quận Bình Thạnh</option>
                </select>
                <br><br>
                </div>
                

			</div><!-- End Step Content -->
            <div class="sep_his"><hr></div><br>
			Nếu bạn đã chắc chắn cho sự lựa chọn của mình, xin vui lòng chọn tiếp tục<br><br>
        <div class="clear"></div>                   
		<div class="prefix_6 grid_3 suffix_1 alpha"><input type="submit" onclick="window.location='<?php echo $this->fullUrl('/bid/product/create1/') ?>'" class="textStep" name="back" value="Quay Lại &lt;&lt;"></div>
        <div class="grid_9 omega"><input type="submit" class="textStep" name="forward" value="Tiếp Tục &gt;&gt;"></div>
        
        </div>       
</div>
</form>
<script type="text/javascript">
	$('#form2').ajaxForm({
		success: function(data){
			if(data == 'finish'){
				window.location = "<?php echo $this->fullUrl('/bid/product/create3/') ?>";
			}else{
				$('#message').html(data);
				alert('Dữ liệu không hợp lệ, xem thông báo phía trên');
			}
		}
	});
</script>
